<?php
session_start();
include('../config.php'); 
LinkDataBase();
$sql = "delete from sheet where table_name ='".$_GET["sheet"]."' AND filename='".$_GET['filename']."'";
$result= mysql_query($sql);
$sql = "delete from ".$_GET['filename']." where table_name ='".$_GET["sheet"]."'";
$result= mysql_query($sql);
header("Location:../sheetlist/index.php?filename=".$_GET['filename']."&Page=".$_GET['Page'] );
?>